package com.yz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yz.entity.Membership;
import com.yz.mapper.MembershipMapper;
import com.yz.service.MembershipService;

/**
 * 院系表实现类
 * @author 于万伟
 *
 */
@Service
public class MembershipServiceImpl implements MembershipService{
	@Autowired
	MembershipMapper membershipMapper;

	@Override
	public List<Membership> getMem(Membership membershipDto) {
		return membershipMapper.getMem(membershipDto);
	}

	@Override
	public boolean addMem(Membership membership) {
		return membershipMapper.addMem(membership);
	}

	@Override
	public boolean updateMem(Membership membership) {
		return membershipMapper.updateMem(membership);
	}

	@Override
	public boolean delMem(int memid) {
		return membershipMapper.delMem(memid);
	}
}
